package com.sfpay.coreplatform.member.common.constant;

/**
 * 
 * 
 * 类说明：系统中常量定义类
 *  
 * 
 * <p>
 * 详细描述：
 *   
 * 
 * @author 313717
 *   
 * CreateDate: 2012-2-8
 */
public class Constants 
{
	/**处理成功**/
	public static final String SUCCESS = "SUCCESS";
	
	/**处理失败**/
	public static final String FAIL = "FAIL";
	
	 /**手机号长度 **/
    public static final int MOBILE_LEN = 11;
    
	 /**储值卡密码长度 **/
    public static final int PWD_LEN = 8;
    
    /**会员号长度**/
    public static final int MEMBER_NO_LEN = 14;
    
    /**批量操作支持最大数量**/
    public static final int BATCH_SUPPORT_MAXCOUNT = 20;
    
    /**表序列ID最大长度**/
    public static final int TAB_ID_MAX_LEN = 16;
    
    /**会员号标示**/
    public static final int MEMNO_FLAG = 0;
    
    /**手机标示**/
    public static final int MOBILE_FLAG = 1;
    
    /**邮箱标示**/
    public static final int MAIL_FLAG = 2;
    
    /**登录名标示**/
    public static final int LOGINNAME_FLAG = 3;
    
    /**储值卡标示**/
    public static final int STORED_CARD_FLAG = 4;
    
    /**证件号码**/
    public static final int CERT_NO = 5;
    
    /**其他标示(非会员号,手机,邮箱)**/
    public static final int OTHER_FLAG = 99;
    
    /**   Y      **/
    public static final String COMM_Y = "Y";
    
    /**   N     **/
    public static final String COMM_N = "N";
    
    /**账户类型长度**/
    public static final int MAX_ACCOUNT_LEN = 2;
    
    /**会员系统在获取OMS参数时,标示的系统来源**/
    public static final String MEMBER_FLAG = "member";
    
    /**批量操作,一次操作list最大长度(oracle数据库最长sql支持64K,计算sql长度)**/
    public static final int DB_BATCH_QUERY_MAX_LEN = 1000;
    
    /**会员登录输入密码，失败最大的重试次数**/
    public static final String MAX_LOGINFAIL_TIMES = "max_loginfail_times";
    
    /**会员登录输入密码，统计的时间周期(以分为单位)**/
    public static final String LOGIN_FAIL_CYCLE_TIME = "login_fail_cycle_time";
    
    /**会员登录，在输入N次密码后，被锁定后。系统自动解锁时间（以分钟为单位）**/
    public static final String LOGIN_FAIL_UNLOCK_TIME  = "login_fail_unlock_time";
    
    /**尝试次数1,2,3**/
    public static final int TRY_TIMES_1 = 1;
    
    public static final int TRY_TIMES_2 = 2;
    
    public static final int TRY_TIMES_3 = 3;
    
    /**账户类型编号:可付-人民币-一般户-不可透支-可提现**/
    public static final int ACCOUNT_TYPE_NO_FOR_101=101; 
	
    /**账户类型编号:可付-积分-赠送户-不可透支-不可提现**/
    public static final int ACCOUNT_TYPE_NO_FOR_102=102; 
    
    /**人民币账户**/
    public static final String ACCOUNT_NAME_FOR_101="人民币账户";
    
    /**积分账户**/
	public static final String ACCOUNT_NAME_FOR_102="积分账户";
	
	/**
	 * 默认的会员本金账户的科目代码
	 */
	public static final String DEFAULT_SUBJECT_NO_FOR_101 = "201202001"; 
	
	/**
	 * 默认的会员本金账户的科目代码
	 */
	public static final String DEFAULT_SUBJECT_NO_FOR_102 = "201302001";
	
	
	//账户类型 01	一般账户 02	退款保证金. 03 赠送积分账户
	public static final String ACCOUNT_TYPE_01 = "01";
	
	public static final String ACCOUNT_TYPE_02 = "02";
	
	public static final String ACCOUNT_TYPE_03 = "03";
	
	//顺丰站或门店标识
	public static final int SFD_TYPE_CODE = 5;
    
}